﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Views/Shared/Site.Master" CodeBehind="ShowPost.aspx.cs" Inherits="Press.MVC.Web.Views.Blog.ShowPost" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<%= Html.Validation().ValidatorRegistrationScripts() %>
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

<!-- -->
<%=Html.RenderAppControl("PostItemDisplay.ascx",ViewData.Model.Post)%>
   
   Comments:<br />
   
   
   <%foreach (Press.MVC.Data.PostComment pc in ViewData.Model.Post.PostComments) { %>
    <h3>AUTHOR: <%= pc.Author %></h3>
    
    
    
    <p>
    <div>
    <h3>BODY: <%= pc.Body %></h3>
    
    </div>
    </p>
    
    
        
    
    <%} %> 

<%= ViewData.Model.Post.AllowComments.ToString() %>
<%=Html.RenderAppControl("AddComment.ascx", ViewData.Model.Post, new { AllowComments = true })%>
    
     Categories:
 
   
    
</asp:Content>